<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>代码生成工具</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="../js/jquery-3.4.1.min.js" charset="utf-8"></script>
    <script src="../layui/layui.js"></script>
    <script src="../js/common.js" charset="utf-8"></script>
    <script type="text/javascript" src="index.js"></script>
</head>
<script>
    $(function() {
        let hostName = null
        $.ajax({
            url: '/server/getLocalIp',
            contentType: "application/json;charset=utf-8",
            type: "get",
            success: function (result) {
                sessionStorage.setItem('hostName',result.data);
                hostName = "http://"+sessionStorage.getItem('hostName')+"/page/index.html"
                let host = window.location.host
                if (hostName!=null && hostName.indexOf(host)==-1){
                    window.location.href=hostName
                }
            }
        })
    })
</script>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">代码生成系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
        </div>
    </div>

    <div class="layui-side layui-bg-pink" style="color: #ff97a1">
        <div class="layui-side-scroll"  id="navBarId">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item   layui-nav-itemed">
                    <a href="javascript:;"><i class="layui-icon layui-icon-windows" >代码生成器</i></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="site-demo-active" data-url="autoCode/codeIndex.html" data-id="300" data-title="生成代码">
                            <i class="layui-icon layui-icon-code-circle" >生成代码</i>
                        </a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-windows" >数据库管理</i></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="site-demo-active" data-url="mysqlManager/index.html" data-id="400" data-title="mysql表设计导出">
                            <i class="layui-icon layui-icon-code-circle" >mysql表设计导出</i>
                        </a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-windows" >其他工具</i></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="site-demo-active" data-url="tool/screen.html" data-id="500" data-title="录屏">
                            <i class="layui-icon layui-icon-code-circle" >录屏</i>
                        </a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>


    <div class="layui-body">

        <div class="layui-tab" lay-filter="demo" lay-allowclose="true" >
            <ul class="layui-tab-title">
                <li class="layui-this" >首页</li>
            </ul>
            <div class="layui-tab-content" style="height: 400px">
                <div class="layui-tab-item layui-show">
                    <div>
                        <br><br><br>
                        <div style="text-align: center">
                            <span class="textWidth" style="font-size: 45px">代码生成工具</span>
                        </div>
                        <br><br><br> <br><br><br>
                        <div style="text-align: center">
                            <span class="vintage5" style="font-size: 30px">使用手册为项目内README.md文件</span>
                        </div>
                        <br>
                        <br>
                        <div style="text-align: center">
                            <span class="vintage2" style="font-size: 20px">版本V1.0</span>
                        </div>
                        <br>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        代码生成
    </div>
</div>

<script>

</script>
</body>
</html>